<?php

class m120906_073905_employee_status extends CDbMigration
{
	public function safeUp()
	{
		$this->addColumn('erp_employee', 'status', 'int');
		$this->update('erp_employee', array(
			'status'=>1
			), 'employed=1');
		$this->update('erp_employee', array(
			'status'=>6
		), 'employed=0');
	}

	public function safeDown()
	{
		$this->dropColumn('erp_employee', 'status');
	}
}